﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Net
{
    public partial class nethelper : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string type = "F";
            switch (type)
            {
                case "A":
                    A();
                    break;
                case "B":
                    B();
                    break;
                case "C":
                    C();
                    break;
                case "D":
                    D();
                    break;
                case "E":
                    E();
                    break;
                case "F":
                    F();
                    break;
                default: break;
            }
        }

        private void A()
        {

        }
        //GetHtml
        private void B()
        {

        }
        //GetFiles
        private void C()
        {

        }
        private void D()
        {

        }
        private void E()
        {


        }

        protected void F()
        {

            string ip = MSL.Utility.Net.NetHelper.LANIP;
            Socket s = MSL.Utility.Net.NetHelper.CreateTcpSocket();
            MSL.Utility.Net.NetHelper.BindEndPoint(s, MSL.Utility.Net.NetHelper.CreateIPEndPoint(ip, 0));



        }

    }
}